import pytest
import os
if __name__ == '__main__':
    '''运行并生成日志'''
    pytest.main(['-v', '-s','--clean-alluredir','--alluredir=./allure-report/result'])
    os.system('allure generate ./allure-report/result -o ./allure-report/html --clean')
    os.system('allure open ./allure-report/html')
    # '''测试模式'''
    # pytest.main(['-v', '-s'])
